home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / frio / r3oscaler.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  1.8 KB  |  82 lines

  1.  
  2. // JavaScript wrapper for r3oscaler.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_OUTSCALER_H = 1;
  7. include("real/frio/r3output.js")
  8.  
  9.  
  10. var R3CLID_OUTPUTSCALER = 1536;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Add a child output
  16.  
  17. R3OUTSCLM_INSERT = 1536000;
  18.  
  19. function mR3OUTSCLM_INSERT() {
  20.   DoA(this.r3obj, 1536000, 0, R3TID_INTEGER, 0);
  21. }
  22.  
  23. // Description: Remove a child output
  24. // p3: Object, object to be removed 
  25.  
  26. R3OUTSCLM_REMOVE = 1536001;
  27.  
  28. function mR3OUTSCLM_REMOVE(p3) {
  29.   DoA(this.r3obj, 1536001, p3, R3TID_OBJECT, 0);
  30. }
  31.  
  32. // Description: Remove the first child output and return its address
  33. // Returns: Object, child object or NULL if no children left
  34.  
  35. R3OUTSCLM_REMOVEFIRST = 1536002;
  36.  
  37. function mR3OUTSCLM_REMOVEFIRST() {
  38.   return R3ToJS(  DoA(this.r3obj, 1536002, 0, R3TID_INTEGER, 0));
  39. }
  40.  
  41.  
  42.  
  43.  
  44. R3OUTSCLA_WScale = 1536500;
  45. function SetR3OUTSCLA_WScale(value) {
  46.   R3Set(this.r3obj, R3OUTSCLA_WScale, value, R3TID_FLOAT, 0); 
  47. }
  48.  
  49. function GetR3OUTSCLA_WScale() {
  50.   return R3Get(this.r3obj, R3OUTSCLA_WScale, R3TID_FLOAT, 0); 
  51. }
  52.  
  53. R3OUTSCLA_HScale = 1536501;
  54. function SetR3OUTSCLA_HScale(value) {
  55.   R3Set(this.r3obj, R3OUTSCLA_HScale, value, R3TID_FLOAT, 0); 
  56. }
  57.  
  58. function GetR3OUTSCLA_HScale() {
  59.   return R3Get(this.r3obj, R3OUTSCLA_HScale, R3TID_FLOAT, 0); 
  60. }
  61.  
  62.  
  63.  
  64. function r3Outputscaler () { 
  65.    this.base = r3God;
  66.    if(arguments.length) {
  67.       this.base(R3CLID_OUTPUTSCALER, arguments);
  68.    }
  69.    // Methods
  70.    this.INSERT=mR3OUTSCLM_INSERT;
  71.    this.REMOVE=mR3OUTSCLM_REMOVE;
  72.    this.REMOVEFIRST=mR3OUTSCLM_REMOVEFIRST;
  73.  
  74.    // Attributes
  75.    this.GetWScale=GetR3OUTSCLA_WScale;
  76.    this.SetWScale=SetR3OUTSCLA_WScale;
  77.    this.GetHScale=GetR3OUTSCLA_HScale;
  78.    this.SetHScale=SetR3OUTSCLA_HScale;
  79. }
  80.  
  81. r3Outputscaler.prototype=new r3Output;
  82. // r3oscaler.h_H